package cn.lwj.webService.entity;

import cn.lwj.webService.util.XmlXStreamUtils;
import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name = "t_xf_yqxk_ajxx")
public class TxfYqxkAjxx implements Serializable {

    private String cId;//id
    private String cJzbId;//四级业务主键
    private String cYqxkId;//延期许可ID主键
    private Integer nZbbz;//在办标志 1:在办
    private Date dtTimestamp;//时间戳

    public static String toXmlString(TxfYqxkAjxx bean) {
        Map<String, Class> aliasInfo = new HashMap() {{
            put("result", TxfYqxkAjxx.class);
        }};
        return XmlXStreamUtils.objectToXml(1, bean, aliasInfo);
    }

    public TxfYqxkAjxx() {
    }

    /*public TxfYqxkAjxx(String cId, String cJzbId, String cYqxkId, Date dtTimestamp) {
        this.cId = cId;
        this.cJzbId = cJzbId;
        this.cYqxkId = cYqxkId;
        this.dtTimestamp = dtTimestamp;
    }*/

    public TxfYqxkAjxx(String cId, String cJzbId, String cYqxkId, Integer nZbbz, Date dtTimestamp) {
        this.cId = cId;
        this.cJzbId = cJzbId;
        this.cYqxkId = cYqxkId;
        this.dtTimestamp = dtTimestamp;
        this.nZbbz = nZbbz;
    }

    @Id
    @Column(name = "C_ID")
    public String getcId() {
        return cId;
    }

    public void setcId(String cId) {
        this.cId = cId;
    }

    @Column(name = "C_JZB_ID")
    public String getcJzbId() {
        return cJzbId;
    }

    public void setcJzbId(String cJzbId) {
        this.cJzbId = cJzbId;
    }

    @Column(name = "C_YQXK_ID")
    public String getcYqxkId() {
        return cYqxkId;
    }

    public void setcYqxkId(String cYqxkId) {
        this.cYqxkId = cYqxkId;
    }

    @Column(name = "DT_TIMESTAMP")
    public Date getDtTimestamp() {
        return dtTimestamp;
    }

    public void setDtTimestamp(Date dtTimestamp) {
        this.dtTimestamp = dtTimestamp;
    }

    @Column(name = "N_ZBBZ")
    public Integer getnZbbz() {
        return nZbbz;
    }

    public void setnZbbz(Integer nZbbz) {
        this.nZbbz = nZbbz;
    }

    @Override
    public String toString() {
        return "TxfYqxkAjxx{" +
                "cId='" + cId + '\'' +
                ", cJzbId='" + cJzbId + '\'' +
                ", cYqxkId='" + cYqxkId + '\'' +
                ", dtTimestamp=" + dtTimestamp +
                ", nZbbz=" + nZbbz +
                '}';
    }
}
